package cn.edu.seu.cose.qol.ws.resource.questionnaire.strategy;

public class QuestionUriBuilder {
	
	private static String PATH_ROOT = "/resource/questionnaires";
	
	private static QuestionUriBuilder _instance;
	
	public static QuestionUriBuilder getInstance() {
		if (_instance == null) {
			_instance = new QuestionUriBuilder();
		}
		return _instance;
	}
	
	protected QuestionUriBuilder() {}
	
	public String getUri(String questionnaireName, String questionbaseName,
			String questionNumber) {
		StringBuilder builder = new StringBuilder();
		builder.append(PATH_ROOT)
			.append("/").append(questionnaireName)
			.append("/").append(questionbaseName)
			.append("/").append(questionNumber);
		return builder.toString();
	}

}
